<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="path" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${empty bookType ? "Add Book Type" : "Edit Book Type"}</title>

<script type="text/javascript" src="${path}/js/jquery-1.10.2.js"></script>
<link rel="stylesheet"
	href="${path}/js/validator-0.7.3/jquery.validator.css">
<script type="text/javascript"
	src="${path}/js/validator-0.7.3/jquery.validator.js"></script>
<script type="text/javascript"
	src="${path}/js/validator-0.7.3/local/zh_CN.js"></script>
<script type="text/javascript"
	src="${path}/js/jbox-v2.3/jBox/jquery.jBox-2.3.min.js"></script>
<script type="text/javascript"
	src="${path}/js/jbox-v2.3/jBox/i18n/jquery.jBox-zh-CN.js"></script>
<link type="text/css" rel="stylesheet"
	href="${path}/js/jbox-v2.3/jBox/Skins/Default/jbox.css" />

<!-- BEGIN GLOBAL MANDATORY STYLES -->

<link href="${path}/css/basic/bootstrap.min.css" rel="stylesheet"
	type="text/css" />

<link href="${path}/css/basic/bootstrap-responsive.min.css"
	rel="stylesheet" type="text/css" />

<link href="${path}/css/basic/font-awesome.min.css" rel="stylesheet"
	type="text/css" />

<link href="${path}/css/basic/style-metro.css" rel="stylesheet"
	type="text/css" />

<link href="${path}/css/basic/style.css" rel="stylesheet"
	type="text/css" />

<link href="${path}/css/basic/style-responsive.css" rel="stylesheet"
	type="text/css" />

<link href="${path}/css/basic/default.css" rel="stylesheet"
	type="text/css" id="style_color" />

<link href="${path}/css/basic/uniform.default.css" rel="stylesheet"
	type="text/css" />

<!-- END GLOBAL MANDATORY STYLES -->

</head>

<body>

	<!-- BEGIN PAGE CONTAINER-->

	<div class="container-fluid">

		<!-- BEGIN PAGE HEADER-->

		<div class="row-fluid">

			<div class="span12">

				<!-- BEGIN PAGE TITLE & BREADCRUMB-->

				<h3 class="page-title">${empty bookType ? "Add Book Type" : "Edit Book Type"}</h3>

				<ul class="breadcrumb">

					<li><i class="icon-home"></i><a href="${path}/admin/main">Home</a><span
						class="icon-angle-right"></span></li>
					<li><a href="${path}/booktype/list">Book Type Query</a><span
						class="icon-angle-right"></span></li>
					<li>${empty bookType ? "Add Book Type" : "Edit Book Type"}</li>

				</ul>

				<!-- END PAGE TITLE & BREADCRUMB-->

			</div>

		</div>

		<!-- END PAGE HEADER-->

		<!-- BEGIN PAGE CONTENT-->

		<div class="row-fluid">

			<div class="span12">

				<!-- BEGIN SAMPLE FORM PORTLET-->

				<div class="portlet box green tabbable">

					<div class="portlet-title">

						<div class="caption">${empty bookType ? "Add Book Type" : "Edit Book Type"}</div>

					</div>

					<div class="portlet-body form">

						<div class="tab-content">

							<!-- BEGIN FORM-->

							<form class="form-horizontal" action="${path}/booktype/save"
								method="post">
								<div class="control-group">
									<div class="controls">
										<input type="hidden" name="id" value="${bookType.id}" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">Name:</label>
									<div class="controls">
										<input class="m-wrap medium" type="text" maxlength="15" name="name"
											value="${bookType.name}" placeholder="Enter Book Type Name"
											data-rule="required;" data-tip="Not Empty" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label">Description:</label>
									<div class="controls">
										<input class="m-wrap medium" type="text" maxlength="30" name="description"
											value="${bookType.description}"
											placeholder="Enter Description" data-rule="required;"
											data-tip="Not Empty" />
									</div>
								</div>
								<div class="form-actions">
									<button class="btn blue" type="submit">
										<i class="icon-ok"></i> Save
									</button>
								</div>
							</form>

							<!-- END FORM-->

						</div>

					</div>

				</div>

				<!-- END SAMPLE FORM PORTLET-->

			</div>

		</div>

		<!-- END PAGE CONTENT-->

	</div>

	<!-- END PAGE CONTAINER-->


	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

	<!-- BEGIN CORE PLUGINS -->

	<script src="${path}/js/basic/jquery-1.10.1.min.js"
		type="text/javascript"></script>

	<script src="${path}/js/basic/jquery-migrate-1.2.1.min.js"
		type="text/javascript"></script>

	<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->

	<script src="${path}/js/basic/jquery-ui-1.10.1.custom.min.js"
		type="text/javascript"></script>

	<script src="${path}/js/basic/bootstrap.min.js" type="text/javascript"></script>

	<!--[if lt IE 9]>

	<script src="${path}/js/basic/excanvas.min.js"></script>

	<script src="${path}/js/basic/respond.min.js"></script>  

	<![endif]-->

	<script src="${path}/js/basic/jquery.slimscroll.min.js"
		type="text/javascript"></script>

	<script src="${path}/js/basic/jquery.blockui.min.js"
		type="text/javascript"></script>

	<script src="${path}/js/basic/jquery.cookie.min.js"
		type="text/javascript"></script>

	<script src="${path}/js/basic/jquery.uniform.min.js"
		type="text/javascript"></script>

	<!-- END CORE PLUGINS -->

	<script src="${path}/js/basic/app.js"></script>

	<script>
		jQuery(document).ready(function() {

			// initiate layout and plugins

			App.init();

		});
	</script>

	<!-- END JAVASCRIPTS -->

</body>
</html>